package com.wsoft.cms.controller;

import com.wsoft.cms.query.sign.SignListQuery;
import com.wsoft.cms.service.ICmsAnnouncementSignService;
import com.wsoft.response.ResponsePage;
import com.wsoft.response.ResponseResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 用户通告报名记录表 前端控制器
 * @author Z001
 * @since 2024年11月27日 10:38:58
 */
@RestController
@Tag(name = "报名")
@RequestMapping("/cms/sign")
public class CmsAnnouncementSignController {

    @Resource
    private ICmsAnnouncementSignService signService;

    @Operation(summary = "报名记录-后台", description = "报名记录")
    @PostMapping("/list")
    public ResponseResult list(@RequestBody SignListQuery query) {
        return ResponseResult.success(ResponsePage.restPage(signService.listSign(query)));
    }



}
